navigator.storage.estimate().then(function (estimate) {
  console.log("使用:", estimate.usage);
  console.log("总量:", estimate.quota);
});
